//
//  UtilsExtras.h
//  EVTUtils
//
//  Created by xeonwell on 28/09/2011.
//  Copyright 2011 EVT, Inc. All rights reserved.
//

#import <Foundation/Foundation.h>


//解码
void *NewBase64Decode(const char *inputBuffer, size_t length, size_t *outputLength);

//编码
char *NewBase64Encode(const void *inputBuffer, size_t length, bool separateLines, size_t *outputLength);


@interface NSData (UtilsExtras)

//md5加密
@property (nonatomic, readonly) NSString* md5Hash;

#pragma mark - base64与NSData互转
//Base64String转成NSData
+ (NSData *)dataFromBase64String:(NSString *)aString;
//NSData转成Base64String
- (NSString *)base64EncodedString;

#pragma mark - 网址编码
- (NSString *)urlEncodedString;


@end
